package com.cius.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by CiusCheung on 16/9/17.
 */
public enum OrderState {
    DELIVERD {
        @Override
        public String getName() {
            return "已发货";
        }
    },
    FINISH {
        @Override
        public String getName() {
            return "交易完成";
        }
    },
    CANCLE {
        @Override
        public String getName() {
            return "已取消";
        }
    };
    public abstract String getName();
    public static List<String> getValues(){
        List<String> list = new ArrayList<String>();
        for (OrderState orderState : OrderState.values()){
            list.add(orderState.getName());
        }
        return list;
    }
}